package xyz.ivan.subject.application.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import xyz.ivan.subject.infra.basic.service.SubjectCategoryService;

import javax.annotation.Resource;

@RestController
public class SubjectController {
    @Resource
    private SubjectCategoryService subjectCategoryService;
    @GetMapping("/hello")
    public String hello(){
        return subjectCategoryService.queryById(14L).getCategoryName();
    }
}
